package com.example.demo_dongruanD.dto;

import java.util.List;

public class SetMealDetailDto {
    private int status;
    private String message;
    private SetMealData data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public SetMealData getData() {
        return data;
    }

    public void setData(SetMealData data) {
        this.data = data;
    }

    public SetMealDetailDto(int status, String message, SetMealData data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    // getters and setters

    public static class SetMealData {
        private String setMealName;
        private List<CheckItem> checkItems;

        public String getSetMealName() {
            return setMealName;
        }

        public void setSetMealName(String setMealName) {
            this.setMealName = setMealName;
        }

        public List<CheckItem> getCheckItems() {
            return checkItems;
        }

        public void setCheckItems(List<CheckItem> checkItems) {
            this.checkItems = checkItems;
        }
// getters and setters
    }

    public static class CheckItem {
        private String checkItemName;
        private List<CheckItemDetailedData> checkItemDetails;

        public List<CheckItemDetailedData> getCheckItemDetails() {
            return checkItemDetails;
        }

        public void setCheckItemDetails(List<CheckItemDetailedData> checkItemDetails) {
            this.checkItemDetails = checkItemDetails;
        }

        public String getCheckItemName() {
            return checkItemName;
        }

        public void setCheckItemName(String checkItemName) {
            this.checkItemName = checkItemName;
        }
// getters and setters
    }

    public static class CheckItemDetailedData {
        private Integer cdId;
        private String name;
        private String unit;
        private String minrange;
        private String maxrange;
        private String normalValue;
        private String normalValueString; // 新增字段
        private String type; // 新增字段
        private String value; // 新增字段
        private Integer isError; // 新增字段

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public Integer getIsError() {
            return isError;
        }

        public void setIsError(Integer isError) {
            this.isError = isError;
        }

        public Integer getCdId() {
            return cdId;
        }

        public void setCdId(Integer cdId) {
            this.cdId = cdId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getMinrange() {
            return minrange;
        }

        public void setMinrange(String minrange) {
            this.minrange = minrange;
        }

        public String getMaxrange() {
            return maxrange;
        }

        public void setMaxrange(String maxrange) {
            this.maxrange = maxrange;
        }

        public String getNormalValue() {
            return normalValue;
        }

        public void setNormalValue(String normalValue) {
            this.normalValue = normalValue;
        }

        public String getNormalValueString() {
            return normalValueString;
        }

        public void setNormalValueString(String normalValueString) {
            this.normalValueString = normalValueString;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
